#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'多重继承'

class Animal(object):
    def eat(self):
        return 'eat'

class Fly(object):
    def fly(self):
        return 'can fly'

class Run(object):
    def run(self):
        return 'can run'

# 多重继承，鸟是会飞的动物
class Bird(Animal,Fly):
    pass

# 多重继承，狗是会跑的动物
class Dog(Animal,Run):
    pass

b = Bird()
print(b.fly())

d = Dog()
print(d.run())


# Pyton MixIn


